<?php
/**
 * @Author: rocky
 * @Copyright: 广州拓冠科技 <http://my8m.com>
 * Date: 2019/8/29
 * Time: 11:41
 */


namespace app\shop\validate;


use app\common\validate\BaseValidate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'car_ids' => 'requireIf:order_type,1',
        'spec_id' => 'requireIf:order_type,2',
        'num' => 'requireIf:order_type,2|gt:0',
        'address_id'=>'require',
        'pay_type'=>'require|between:1,2',
        'express_type'=>'require|between:1,2',
    ];
}